#include<stdio.h>
#include<stdlib.h>
int main()
{
    int x,sum=0,i=0;
    while(i>=0)
    {
        printf("Input a number:\n");
        scanf("%d",&x);
        if(x>0)
        {

            i++;
            sum=sum+x;
        }
        else if(x<0)
        {
            continue;
        }
        else
        {
            printf("sum=%d,count=%d\n",sum,i);
            exit(0);
        }
    }
    return 0;
}
